package com.wufan.day07.java1;

/**
 * @author SongWufan
 * @date 2022/1/9 19:36
 */
public class Student extends Person{
    String major;

    public Student() {

    }

    public Student(String major) {
        this.major =  major;
    }

    public void study() {
        System.out.println("专业是"+major);
    }

    /**
     * 对父类方法的重写
     */
    @Override
    public void eat() {
        System.out.println("学生餐");
    }

    public void show() {
        System.out.println("我是学生");
    }

    @Override
    public String info() {
        return (String) super.info();
    }

    @Override
    public double info1() {
        return super.info1();
    }
    
}